package com.hoshiicloud.suppplier.feign.hystrix;


import com.hoshiicloud.suppplier.feign.IdGeneratorService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.LinkedList;

/**
 * @author campchen
 * @title: HystrixIdGeneratorFeignFallback
 * @projectName hoshiibuy-organization
 * @description:HystrixIdGeneratorFeignFallback
 * @since 2019-04-28
 */
public class HystrixIdGeneratorFeignFallback implements IdGeneratorService {
    private Logger logger = LoggerFactory.getLogger(this.getClass());

    @Override
    public String queryGeneratorId() {
        logger.error("hoshiicloud-as2b-suppplier服务Feign调用hoshiicloud-id-generator服务{}异常", "IdGeneratorService.queryGeneratorId");
        return null;
    }

    @Override
    public String getComUserCode() {
        return null;
    }

    @Override
    public String getPlatCousomerCode() {
        return null;
    }


    @Override
    public LinkedList<String> getIdList(int count) {
        logger.warn("id服务触发fallback");
        return null;
    }
}
